home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
wildcat
/
asend100.zip
/
AUTOSEND.WCC
< prev
next >
Wrap
Text File
|
1996-08-21
|
3KB
|
147 lines
rem **** Listserv Autosend Utility v1.00 (08/21/96)
rem **** Author: Pete Nelson (pete@terminal-one.com, weasel@ecis.com
rem **** http://www.ecis.com/~weasel/wccode/wccode.html
rem **** This source code is designed for use on a Wildcat v4
rem **** system. Feel free to modify the source code for
rem **** Wildcat v5. The data record for the WC5 version of
rem **** Listserv is included.
rem **** This is the subscriber list data record for the
rem **** Wildcat v4 version of Listserv
type sublist_rec
name as string*70
date_subscribed as date
real_name as string*30
end type
rem **** This is the subscriber list data record for the
rem **** Wildcat v5 version of Listserv
rem ****
rem **** type sublist_rec
rem **** name as string*70
rem **** date_subscribed as datetime
rem **** real_name as string*30
rem **** end type
cls
print "@0F@Listserv Autosend Utility v1.00 (08/21/96) - by Pete Nelson"
print "Terminal One BBS (510) 689-9528"
print "Author: pete@terminal-one.com"
print
delay 1
dim sublist as sublist_rec
dim email_conf as integer, msg_from as string
dim subfile as string, textfile as string
dim recnum as long, msg as messageheader, urec as userrecord
dim config_file as string, temptext1 as string
dim msg_subject as string
const blank = "<BLANK>"
moreprompt off
if paramstr(1) = "" then
config_file = "autosend.cfg"
else
config_file = paramstr(1)
end if
rem *** Subscriber File
rem *** Text File
rem *** From Name
rem *** Subject
rem *** Conference
open config_file for input as #1
input #1, subfile
input #1, textfile
input #1, msg_from
input #1, msg_subject
input #1, temptext1
close #1
subfile = trim(subfile)
textfile = trim(textfile)
msg_from = ucase(trim(msg_from))
msg_subject = trim(msg_subject)
email_conf = val(trim(temptext1))
if not exists(subfile) then
print
print "@0C@" subfile " @0F@does not exist."
print
waitenter
end
end if
if not exists(textfile) then
print
print "@0C@" textfile " @0F@does not exist."
print
waitenter
end
end if
open subfile for random as #1 len = len(sublist_rec)
recnum = 1
print
do
get #1, recnum, sublist
if sublist.name <> blank then
msg.to = sublist.name
msg.from = msg_from
msg.fromid = 0
msg.toid = 0
if getuser(urec,msg.to) then msg.toid = urec.userid
if getuser(urec,msg.from) then msg.fromid = urec.userid
msg.subject = msg_subject
msg.network = ""
msg.flags = 3
addmessage(msg, textfile, "", email_conf)
print "@0A@Sending @0F@" msg.subject " @0A@to @0E@" msg.to
updatescreen
end if
inc recnum
loop until recnum > lof(1)
print
print "@0B@Done!"
delay 2
end